//
//  UPCalendarPicker.h
//  Uang Pasti
//
//  Created by 李永彬 on 2025/8/26.
//

#import <UIKit/UIKit.h>
#import "UPCalendarYearCell.h"
#import "UPCalendarMonthCell.h"
#import "UPCalendarDayCell.h"

NS_ASSUME_NONNULL_BEGIN

@class UPCalendarPicker;

@protocol UPCalendarPickerDelegate <NSObject>
- (void)calendarPicker:(UPCalendarPicker *)picker didSelectDate:(NSDate *)date;
@end

@interface UPCalendarPicker : UIView

@property (nonatomic, weak) id<UPCalendarPickerDelegate> delegate;
@property (nonatomic, strong) NSDate *selectedDate;

- (instancetype)initWithSelectedDate:(NSDate *)selectedDate;

@end

NS_ASSUME_NONNULL_END
